package com.ants.boot.wx.dto.selfset;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Email;
import javax.validation.constraints.Min;

/**
 * @author 蚂蚁会花呗
 * @date 2022/5/27 16:22
 */
@ApiModel(value = "更新邮箱")
public class WxEditEmailDto {

    @ApiModelProperty(value = "主键id值")
    @Min(value = 1,message = "id不能为空")
    private Integer id;

    @ApiModelProperty(value = "邮箱",required = true)
    @Email(message = "邮箱格式不正确")
    private String email;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
